<%@page import="oracle.net.aso.b"%>
<%@page import="news.entity.Board"%>
<%@page import="news.biz.BoardBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	response.setCharacterEncoding("UTF-8");
	
	String name=request.getParameter("newboard");
	BoardBiz boards=new BoardBiz();
	Board board=new Board();
	
	board.setBoardName(name);
	boolean flag=boards.addBoard(board);
	if(flag){
		request.getRequestDispatcher("boardList.jsp").forward(request, response);
	}else{
		response.sendRedirect("boardList.jsp");
	}
	
%>


